package net.sx.minemodule.mvp.presenters;

import com.kedll.library.mvp.BasePresenter;

import net.sx.minemodule.mvp.bean.GoodsExchangeModel;
import net.sx.minemodule.mvp.views.MineMedalView;

import io.reactivex.Observable;

public class MineMedalPresenter extends BasePresenter<MineMedalView> {

    public MineMedalPresenter(MineMedalView view) {
        super(view);
        addData();
    }

    private void addData() {
        addSubscription(Observable.range(0, 3)
        .map(integer -> {
            GoodsExchangeModel exchangeModel = new GoodsExchangeModel();
            exchangeModel.setDepleteNum("消耗奖牌：2个");
            exchangeModel.setGoodsName("北欧设计落地灯");
            return exchangeModel;
        })
        .toList()
        .subscribe());
    }
}
